<?php 
	/**
	 *  shop_do.php  
	 *
	 * @version       v0.01
	 * @create time   2011-8-22
	 * @update time
	 * @author        lujiangxia
	 * @copyright     Copyright (c) 微普科技 WiiPu Tech Inc. (http://www.wiipu.com)
	 * @informaition
	 */
	require_once("usercheck2.php");
	$act=sqlReplace(trim($_GET['act']));
	switch ($act){
		case "base":
			$comment_status=sqlReplace(trim($_POST['comment_status']));//评论是否显示
			$protocol_status=sqlReplace(trim($_POST['protocol_status']));//证书协议是否显示
			$logo=sqlReplace(trim($_POST['upfile1']));
			$icp=sqlReplace(trim($_POST['icp']));
			$sms=sqlReplace(trim($_POST['sms']));
			$admin=sqlReplace(trim($_POST['admin']));
			$card=sqlReplace(trim($_POST['card']));
			$intro=$_POST['intro'];
			$intro=str_replace("'","&#39;",$intro);
			$intro=str_replace("<br />","</p><p>",$intro);
			$sql="update ".WIIDBPRE."_site set site_logo='".$logo."',site_icp='".$icp."',site_isshowcomment='".$comment_status."',site_isshowprotocol='".$protocol_status."',site_isshowadminindex='".$admin."',site_sms='".$sms."',site_protocol='".$intro."',site_isshowcard='".$card."'";
			if (mysql_query($sql)){
				alertInfo('操作成功','',1);
			}else{
				alertInfo('出错','',1);
			}
		break;
	}
	
	
	

	
?>